AR=ar
CC = gcc
CFLAGS = -Wall -I..
COMPILE = $(CC) $(CFLAGS) -c 
OBJFILES := $(patsubst %.c,%.o,$(wildcard *.c))

all: libasdb.a

clean:
	-rm *.o
	-rm libasdb.a
	
libasdb.a: $(OBJFILES)
	$(AR) rvu $@ $(OBJFILES)
	ranlib $@

test:
	cd test; make;

%.o: %.cpp
	$(COMPILE) -o $@ $<